package com.hq.ims.data.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.hq.ims.data.entityenum.EnumDataType;
import com.hq.mybatis.base.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.ibatis.type.Alias;

import java.io.Serializable;
import java.time.LocalDate;

/**
 * @Author jiang bai ping
 * @Email 526666031@qq.com
 * @DateTime 2024-10-28 09:05:29
 * @Detail 企业资质
 */
@Alias("CompanyAptitudeHistory")
@TableName(value = "company_aptitude_history")
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value="企业资质")
public class CompanyAptitudeHistory extends BaseModel<CompanyAptitudeHistory> implements Serializable{

    @ApiModelProperty(value="企业资质ID")
	@TableId(value="`company_aptitude_id`",type = IdType.ASSIGN_UUID)
	private String companyAptitudeId;

	@ApiModelProperty(value="企业资质名称")
	@TableField(value="`company_aptitude_name`")
	private String companyAptitudeName;
	
	@ApiModelProperty(value="公司id")
	@TableField(value="`company_id`")
	private String companyId;

	@ApiModelProperty(value="公司变更id")
	@TableField(value="`company_change_id`")
	private String companyChangeId;

	@ApiModelProperty(value="公司审核id")
	@TableField(value="`company_check_id`")
	private String companyCheckId;

	@ApiModelProperty(value="数据类型（0之前，1之后）")
	@TableField(value="`data_type`")
	private EnumDataType dateType;
	
	@ApiModelProperty(value="等级")
	@TableField(value="`lv`")
	private String lv;
	
	@ApiModelProperty(value="有效结束时间")
	@TableField(value="`valid_end_date`")
	@JSONField(format = "yyyy-MM-dd")
	private LocalDate validEndDate;
}
